package Market;

import java.util.ArrayList;
import sim.engine.SimState;
import sim.engine.Steppable;

public class LSE implements Steppable {
	
		private double[] Loadprofile;
		private double LP;
		private  double[][] LSEData;
		private  double LD;
		private  int jj;
		ArrayList dlist;
		Market market;
		LSE lse;

	public LSE(double[][] ld, int j, Market mt){

		LSEData = ld;
		jj=j;
		market = mt;
		LP = ld[jj][2];
		
	}

	
	
	public void step(SimState state){
		
		
		setLoadProfile();
		market.setLoadProfile(LD, jj);
		market.setLSEList(this);	
	}
	
    public void setLoadProfile(){
    	  	  
    	LD  = LP;
    		//System.out.println(jj+"  "+LD[jj][i]);	
    	   	
    }
	

}
